#include<stdlib.h>
#include<stdio.h>

void func_1(double (*p)[10],int n,int m)
{
    int i,j;
    for(i=0;i<n;i++)
    {
        for(j=0;j<m;j++)
            scanf("%lf",*(p+i)+j);
    }
}

double func_2(double (*p)[10],int n,int m,int *s)
{
    int i,j;
    double t=*(*p);
    for(i=0;i<n;i++)
    {
        for(j=0;j<m;j++)
        {
            if(t<=*(*(p+i)+j))
            {
                t=*(*(p+i)+j);
                *s=i+1;
                *(s+1)=j+1;
                printf("%d %d\n",*s,*(s+1));
            }
        }
    }
    return t;
}
int main()
{
    int n,m,s2[2];
    double s1[10][10],t;
    while(scanf("%d %d",&n,&m)!=EOF)
    {
        func_1(s1[0],n,m);
        t=func_2(s1[0],n,m,s2);
        printf("%.2lf %d %d\n",t,s2[0],s2[1]);
    }
    return 0;
}
